﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LY.Entity;
using LY.Entity.PageSearch;
using LY.Entity.Entities;

namespace LY.Interface
{
    public interface IMessagesService
    {
        //添加私信信息
        int SaveMessages(U_Messages Messages);

        //我收到的私信
        PagedList<U_Messages_EX> MyMessageLink(int id, PageView view);

        //私信详细
        List<U_Messages_EX> MyMessageDetail(string m_id, string r_id);

        //回复/发私信
        int AddMessages(U_Messages mgs);

        //删除私信
        int DeleteMessage(string mid,string rmid);

        //标识已读
        int UpdateMessageStatus(string id);

        //检测对方名是否存在,返回ID
        int IsNameExists(string name);
    }
}
